package com.rainsoft.center.isec.frame.factory.impl;

import com.rainsoft.center.isec.frame.factory.HandlerFactory;
import com.rainsoft.center.isec.frame.handler.impl.SaveToHbaseHandler;
import com.rainsoft.center.isec.frame.handler.impl.SaveToUDBHandler;
import com.rainsoft.center.isec.stream.library.entity.hbase.BaseLibEntity;

/**
 * @Package com.rainsoft.center.isec.frame.factory.impl
 * @Description:
 * @Author elwyn
 * @Date 2017/12/10 23:44
 * @Email elonyong@163.com
 */
public class VidHandlerFactory extends HandlerFactory{

    @Override
    public<T extends BaseLibEntity> SaveToHbaseHandler<T> getHbaseHandler(String tableName, String family) {
        return new SaveToHbaseHandler<>(tableName,family);
    }

    @Override
    public<T extends BaseLibEntity> SaveToUDBHandler<T> getUDBHandler(String tableName) {
        return new SaveToUDBHandler<>(tableName);
    }
}
